package org.dromara.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 系统消息对象 message
 *
 * @author zlj
 * @date 2024-08-26
 */
@Data
@NoArgsConstructor
@TableName("room")
public class Room implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 聊天室id
     */
    @TableId(value = "room_id")
    private Long roomId;

    /**
     * 大用户id
     */
    private Long bigUserId;

    /**
     * 小用户di
     */
    private Long tinyUserId;

    private String lastContent;

    private Date updateTime;
    /**
     * 是否已读 1已读 0未读
     */
    private Integer isRead;
    /**
     * 接收最后一条信息的用户id
     */
    private Long lastContentUserId;

    /**
     * 大id是否删除 0未删除  1已删除
     */
    private Integer bigRemove;
    /**
     * 小id是否删除 0未删除  1已删除
     */
    private Integer tinyRemove;

    @TableField(exist = false)
    private String wxAvatar;
    @TableField(exist = false)
    private String nickName;
    @TableField(exist = false)
    private String date;
}
